using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace ESOL.WinUI.Proj
{
    public partial class frmPrintTemplateProductionReport : DevExpress.XtraReports.UI.XtraReport
    {
        public frmPrintTemplateProductionReport(DataSet ds)
        {
            InitializeComponent();

            this.DataSource = ds;
            this.DataMember = ds.Tables[0].TableName;
            DetailReport.DataSource = ds;
            DetailReport.DataMember = "fk_1";
            xtcContractModel.DataBindings.Add("Text", ds, "dtMain.CONTRACT_MODEL");
            xtcPlanOrderItemCode.DataBindings.Add("Text", ds, "dtMain.ORDER_ITEM_CODE");
            xtcDelivertDatetime.DataBindings.Add("Text", ds, "dtMain.DELIVERY_DATE");
            xtcProductName.DataBindings.Add("Text", ds, "dtMain.PRODUCT_NAME");
            xtcProductCode.DataBindings.Add("Text", ds, "dtMain.PRODUCT_CODE");
            xtcDescription.DataBindings.Add("Text", ds, "dtMain.DESCRIPTION");
            xtcPlanQty.DataBindings.Add("Text", ds, "dtMain.PLAN_QTY");
            xtcReportQty.DataBindings.Add("Text", ds, "dtMain.REPORTED_TOTAL_QTY");
            xtcLocationCode.DataBindings.Add("Text", ds, "dtMain.LOCATION_CODE");

            xtcProductName_d.DataBindings.Add("Text", ds, "fk_1.PRODUCT_NAME");
            xtcProductCode_d.DataBindings.Add("Text", ds, "fk_1.PRODUCT_CODE");
            xtcDescription_d.DataBindings.Add("Text", ds, "fk_1.DESCRIPTION");
            xtcPlanQty_d.DataBindings.Add("Text", ds, "fk_1.PLAN_QTY");
            xtcStorageQty_d.DataBindings.Add("Text", ds, "fk_1.STORAGE_TOTAL_QTY");
            //xtcType_d.DataBindings.Add("Text", ds, "fk_1.ID");
        }


    }
}
